-
Notifications
You must be signed in to change notification settings - Fork 371
Change Room’s Access to/from Space members #5979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # features/roomdetails/impl/src/main/res/values/localazy.xml # features/securityandprivacy/impl/src/main/res/values/localazy.xml # libraries/ui-strings/src/main/res/values/localazy.xml
|
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #5979 +/- ##
===========================================
+ Coverage 81.34% 81.41% +0.06%
===========================================
Files 2545 2551 +6
Lines 67792 68119 +327
Branches 8683 8740 +57
===========================================
+ Hits 55146 55458 +312
+ Misses 9426 9417 -9
- Partials 3220 3244 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Move authorized space selection state to a shared StateHolder scoped to RoomScope. This simplifies communication between SecurityAndPrivacy and ManageAuthorizedSpaces nodes by replacing the complex coroutine-based parent-child coordination with a reactive state flow pattern.
bmarty
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thanks!
Two remarks on the UI/UX:
When a room is in 2 spaces, the UI flow on its "Security & privacy" screen is a bit weird when the user clicks on "Space members" or "Ask to join":
The title of the screen displayed after the click is always the same and maybe wrong for the "Ask to join" case.
Secondly, maybe the item "Choose which spaces'..." could be moved below the selected option for clarity instead of being at the bottom of the "Access" option:
Sorry if this has been discussed with design and product before, I am just reporting feedback as if I was a regular user.
| @@ -0,0 +1,17 @@ | |||
| /* | |||
| * Copyright (c) 2025 Element Creations Ltd. | |||
| * Copyright 2025 New Vector Ltd. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New files should only have the 2025 (or 2026) Element Creations Ltd. line. Can you check all the new files in the PR please?
| import io.element.android.libraries.ui.strings.CommonStrings | ||
|
|
||
| @Composable | ||
| fun ManageAuthorizedSpacesView( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a Figma link in comment for ref please?
| } | ||
| innerSpaceService | ||
| .topLevelJoinedSpaces() | ||
| .map(spaceRoomMapper::map) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|



Content
This PR allows to change the room access of a room/space to SpaceMembers, aka Restricted.
It also supports the knockRestricted feature.
Motivation and context
Closes #5650
Screenshots / GIFs
See recorded screenshots.
Tests
Tested devices
Checklist